package com.pic.mgt;

/**
 * 集配信狀態字串。
 * @author p10118178
 *
 */
public abstract class IgxStatus {
	/*	業務(Business)的執行狀態
	 *  haishin_business_mgt 和  syushin_business_mgt table 中 status 欄位的值
	 */
	public final static String BUSINESS_REDO = "RD"; // 代表 Business 要重做
	public final static String BUSINESS_LOADED = "L"; // 代表 Business 完成組入
	public final static String BUSINESS_SCHEDULED = "S"; // 代表 Business 完成排程 (集信沒有此狀態)
	public final static String BUSINESS_EXECUTING = "E"; // 代表 Business 正在執行中
	public final static String BUSINESS_EXECUTING_FINISH = "D"; //代表執行的動作完成 (1.集信沒有此狀態) (2.配信此種狀態表示 "解 tar"的動作做完,不包含將業務檔移除完成)
	public final static String BUSINESS_COMPLETED = "C"; // 代表 Business 執行完成 (也將業務檔移除)
	public final static String BUSINESS_FAILED = "F"; // 代表 Business 執行失敗
	public final static String BUSINESS_BATCH_TMP = "B"; // 只有 syushin batch 的檔案才會有此種狀態
	
	/*  配信業務解 tar 各檔案的執行狀態
	 *  haishin_business_log table 中 result 欄位的值
	 */
	public final static String HAISHIN_TARGET_ACTION_INEFFECTIVE_TERMINAL = "E";
	public final static String HAISHIN_TARGET_ACTION_COMPLETE = "C";
	
	/*
	 *  largetsize_haishin_business_asgmt_action 
	 *  table 中 result 欄位的值
	 */
	public final static String HAISHIN_ASGMT_ACTION_COMPLETE = "C";
	public final static String HAISHIN_ASGMT_ACTION_INEFFECTIVE_TERMINAL = "E";
	
	/*
	 * business_list_mgt table 中 current_bucket_status 欄位的值
	 */
	public final static String BUCKET_ACTION_EXECUTING = "E"; // 正在進行打包的動作
	public final static String BUCKET_ACTION_FINISHED = "B"; // 完成打包的動作
	public final static String BUCKET_REMOVED_BATCH_FILES = "R"; // 完成移除被打包的 batch 檔
	public final static String BUCKET_COMPLETED = "C"; // 打包作業完成(bucket檔也已經移到  ap outbox 中)
	
}
